#include "cppTutorOverloadingIOOperator.h"

#include <iostream>

using namespace std;

CcppTutoOverloadingIOOperator :: CcppTutoOverloadingIOOperator () : m_nValue_A (0), m_nValue_B (0)
{
}

CcppTutoOverloadingIOOperator :: CcppTutoOverloadingIOOperator (int nValue_A, int nValue_B)
{
	m_nValue_A = nValue_A;
	m_nValue_B = nValue_B;
}

CcppTutoOverloadingIOOperator :: ~CcppTutoOverloadingIOOperator ()
{
}

ostream& operator<< (ostream &out, CcppTutoOverloadingIOOperator &IOOut)
{
	cout << "First Value : ";
	out << IOOut.m_nValue_A;
	cout << endl;
	cout << "Second Value : ";
	out << IOOut.m_nValue_B;

	return out;
}

istream &operator>>( istream &in, CcppTutoOverloadingIOOperator &IOIn )
{
	cout << "Enter First Value .... ";
	in >> IOIn.m_nValue_A;
	cout << endl;
	cout << "Enter Second Value .... ";
	in >> IOIn.m_nValue_B;
	cout << endl;

	return in;
}
